import { Button, Modal } from 'antd';

class Dialog extends PureComponent {
    state = {}
    // 默认值
    static defaultProps = {
        isModalOpen: false
    }
    render () {
        return (
            <>
                <Modal title="Basic Modal" open={this.isModalOpen} onOk={handleOk} onCancel={handleCancel}>
                    <p>Some contents...</p>
                    <p>Some contents...</p>
                    <p>Some contents...</p>
                </Modal>
            </>
        );
    }
    handleOk=()=>{
        // this.setState（）=
    }
}

export default Dialog;